<script>
    var LATITUDE = '<?php echo $this->LATITUDE; ?>';
    var LONGITUDE = '<?php echo $this->LONGITUDE; ?>';

    var MARKERLATITUDE = '<?php echo $this->MARKERLATITUDE; ?>';
    var MARKERLONGITUDE = '<?php echo $this->MARKERLONGITUDE; ?>';
    var MARKERCONTENT = "<?php echo $this->MARKERCONTENT; ?>";

    var MARKERS = '<?php echo $this->markerArray; ?>';
    var ISKMLPRESENT = '<?php echo $this->iskmlpresent; ?>';

    var UNIQUEIDENTIFIER = '<?php echo $this->UNIQUEIDENTIFIER; ?>';



</script>
<?php $this->headScript()->appendFile($this->JS_PATH . 'form_validations.js'); ?>



<!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->
<div class="clearfix"></div>
<div class="content">
    <div class="page-title"> <i class="icon-custom-right"></i>
        <h3><span class="semi-bold">Add property</span></h3>
    </div>

    <div class="row">
        <div class="col-md-12">
            <div class="grid simple transparent">
                <div class="grid-title">


                </div>
                <div class="grid-body ">
                    <div class="row">


                        <?php if (count($this->errorMessageArray) > 0): ?>
                            <div class="alert alert-error">
                                <?php foreach ($this->errorMessageArray as $erroValue): ?>

                                    <div class="text-left">
                                        <i class="icon-remove-sign"></i>
                                        <?php echo $erroValue; ?>
                                    </div>

                                <?php endforeach; ?>
                            </div>
                        <?php endif; ?>

                        <form id="commentForm" action="" method="POST" enctype="multipart/form-data">
                            <div id="rootwizard" class="col-md-12">
                                <div class="form-wizard-steps">
                                    <ul class="wizard-steps">
                                        <li class="" data-target="#step1"> <a href="#tab1" data-toggle="tab"> <span class="step">1</span> <span class="title">User Details</span> </a> </li>
                                        <li data-target="#step2" class=""> <a href="#tab2" data-toggle="tab"> <span class="step">2</span> <span class="title">Property Location</span> </a> </li>
                                        <li data-target="#step3" class=""> <a href="#tab3" data-toggle="tab"> <span class="step">3</span> <span class="title">Property Details</span> </a> </li>
                                        <li data-target="#step4" class=""> <a href="#tab4" data-toggle="tab"> <span class="step">4</span> <span class="title">Property Gallery<br></span> </a> </li>
                                    </ul>
                                    <div class="clearfix"></div>
                                </div>
                                <div class="tab-content transparent">
                                    <div class="tab-pane" id="tab1"> <br>
                                        <h4 class="semi-bold">Step 1 - <span class="light">User Details</span></h4>
                                        <br>
                                        <div class="row form-row">
                                            <div class="col-md-6">
                                                <?php echo $this->form->prp_id; ?>
                                                <input type="hidden" name="UNIQUEIDENTIFIER" value="<?php echo $this->UNIQUEIDENTIFIER;?>" />
                                                
                                                <?php echo $this->form->member_username; ?>
                                            </div>
                                            <div class="col-md-6">
                                                <?php echo $this->form->member_email; ?>
                                            </div>
                                        </div>
                                        <div class="row form-row">
                                            <div class="col-md-6">
                                                <?php echo $this->form->mem_name; ?>
                                            </div>
                                            <div class="col-md-6">
                                                <?php echo $this->form->mem_surname; ?>
                                            </div>
                                        </div>

                                        <div class="row form-row">
                                            <div class="col-md-6">
                                                <?php echo $this->form->member_phone; ?>
                                            </div>
                                            <div class="col-md-6">
                                                <?php echo $this->form->mem_mobile; ?>
                                            </div>
                                        </div>

                                        <div class="row form-row">
                                            <div class="col-md-6">
                                                <?php echo $this->form->mem_landline; ?>
                                            </div>
                                            <div class="col-md-6">
                                                <?php echo $this->form->mem_work; ?>
                                            </div>
                                        </div>


                                        <div class="row form-row">
                                            <div class="col-md-12">
                                                <?php echo $this->form->mem_address; ?>
                                            </div>
                                        </div>


                                        <div class="row form-row">
                                            <div class="col-md-6">
                                                <?php echo $this->form->mem_representative_name; ?>
                                            </div>
                                            <div class="col-md-6">
                                                <?php echo $this->form->mem_representative_telephone1; ?>
                                            </div>
                                        </div>

                                        <div class="row form-row">
                                            <div class="col-md-6">
                                                <?php echo $this->form->mem_representative_telephone2; ?>
                                            </div>
                                            <div class="col-md-6">
                                                <?php echo $this->form->mem_representative_telephone3; ?>
                                            </div>
                                        </div>



                                        <div class="row form-row">
                                            <div class="col-md-6">
                                                <?php echo $this->form->mem_country; ?>
                                            </div>
                                            <div class="col-md-6">
                                                <?php echo $this->form->mem_city; ?>
                                            </div>
                                        </div>

                                    </div>


                                    <div class="tab-pane" id="tab2"> <br>
                                        <h4 class="semi-bold">Step 2 - <span class="light">Property Location</span></h4>
                                        <br>


                                        <div class="row form-row">
                                            <div class="col-md-6">
                                                <?php echo $this->form->prp_displayaddress; ?>
                                            </div>
                                        </div>
                                        <div class="row form-row">
                                            <div class="col-md-3">
                                                <?php echo $this->form->prp_address; ?>
                                            </div>

                                            <div class="col-md-2">
                                                <input type="button"  id="search-map" class="btn btn-success btn-cons" type="button" value="Search"/>
                                            </div>
                                            <div class="col-md-2">
                                                <?php echo $this->form->prp_lat; ?>
                                            </div>

                                            <div class="col-md-2">
                                                <?php echo $this->form->prp_lon; ?>
                                            </div>

                                        </div>


                                        <h4>Upload KML File</h4>            
                                        <div class="row form-row">
                                            <div class="col-md-4">
                                                <input name="kml[]" class="kml_class" type="file" />
                                            </div>
                                        </div>		


                                        <br/>

                                        <div id="map-canvas" style="height:400px;width:800px;"></div>
                                    </div>

                                    <br/>

                                    <div class="tab-pane" id="tab3"> <br>
                                        <h4 class="semi-bold">Step 3 - <span class="light">Property details</span></h4>
                                        <br>


                                        <div class="row form-row">
                                            <div class="col-md-6">
                                                <?php echo $this->form->property_type; ?>
                                            </div>
                                            <div class="col-md-4">
                                                <?php echo $this->form->property_subtype; ?>
                                                <input type="text" name="property_hdn_subtype" id="property_hdn_subtype" value="<?php echo $this->prp_hdn_subtype; ?>" />
                                            </div>
                                        </div>



                                        <br/>



                                        <?php foreach ($this->languages as $_lan): ?>

                                            <div class="row form-row">
                                                <div class="col-md-12">

                                                    <div class="grid-body no-border">
                                                        <p>    <?php echo ucfirst($_lan['lang_name']); ?> Description </p>
                                                        <textarea cols="60" rows="10" placeholder="Property Description" class="form-control wysihtml5-editor" name="prd_description[]"><?php echo $_lan['description']; ?></textarea>
                                                    </div>

                                                </div>
                                            </div>

                                        <?php endforeach; ?>

                                        <div class="row form-row">
                                            <div class="col-md-4 propertytype housetype">
                                                <?php echo $this->form->prp_bedrooms; ?>
                                            </div>
                                            <div class="col-md-4 propertytype housetype">
                                                <?php echo $this->form->prp_bathrooms; ?>
                                            </div>
                                        </div>

                                        <br/>

                                        <div class="row form-row">
                                            <div class="col-md-4 propertytype housetype landtype businesstype">
                                                <?php echo $this->form->prp_saleprice; ?>
                                            </div>
                                            <div class="col-md-4 propertytype housetype landtype">
                                                <?php echo $this->form->prp_rentprice; ?>
                                            </div>
                                        </div>


                                        <div class="row form-row">
                                            <div class="col-md-4 propertytype housetype landtype">
                                                <?php echo $this->form->prp_plotsize; ?>
                                            </div>
                                            <div class="col-md-4 propertytype housetype landtype">
                                                <?php echo $this->form->prp_plotarea; ?>
                                            </div>
                                        </div>



                                        <div class="row form-row">
                                            <div class="col-md-4 propertytype housetype">
                                                <?php echo $this->form->prp_built_year; ?>

                                            </div>
                                            <div class="col-md-4 propertytype housetype">
                                                <?php echo $this->form->prp_coveredarea; ?>
                                            </div>
                                        </div>


                                        <div class="row form-row">
                                            <div class="col-md-4 propertytype housetype">
                                                <?php echo $this->form->prp_coveredverenda; ?>
                                            </div>
                                            <div class="col-md-4 propertytype">
                                                <?php echo $this->form->prp_floor; ?>
                                            </div>
                                        </div>

                                        <br/>


                                        <div class="row form-row form-group">

                                            <div class="col-md-4 propertytype housetype">
                                                <label class="form-label">Secondry</label>
                                                <div class="controls">
                                                    <?php echo $this->form->prp_secondry; ?>
                                                </div>
                                            </div>


                                            <div class="col-md-4 propertytype housetype">
                                                <label class="form-label">Indoor Facilities</label>
                                                <div class="controls">
                                                    <?php echo $this->form->prp_indoor; ?>
                                                </div>
                                            </div>


                                        </div>



                                        <div class="row form-row form-group">

                                            <div class="col-md-4 propertytype housetype">
                                                <label class="form-label">Outdoor Facilities</label>
                                                <div class="controls">
                                                    <?php echo $this->form->prp_outdoor; ?>
                                                </div>
                                            </div>


                                            <div class="col-md-4 propertytype housetype">
                                                <label class="form-label">Tenancy Details</label>
                                                <div class="controls">
                                                    <?php echo $this->form->prp_tenancy; ?>
                                                </div>
                                            </div>


                                        </div>

                                        <div class="row form-row">
                                            <div class="col-md-4 propertytype housetype landtype businesstype">
                                                <?php echo $this->form->prp_country; ?>
                                            </div>
                                            <div class="col-md-4 propertytype housetype landtype businesstype">
                                                <?php echo $this->form->prp_city; ?>

                                            </div>
                                        </div>

                                        <br/>	

                                        <div class="row form-row">
                                            <div class="col-md-4 propertytype housetype landtype businesstype">
                                                <?php echo $this->form->prp_area; ?>
                                            </div>
                                            <div class="col-md-4 propertytype housetype landtype businesstype">
                                                <?php echo $this->form->prp_enoria; ?>
                                            </div>
                                        </div>

                                        <br/>

                                        <div class="row form-row">
                                            <div class="col-md-4 propertytype housetype landtype businesstype">
                                                <?php echo $this->form->prp_entrynumber; ?>
                                            </div>
                                            <div class="col-md-4 propertytype housetype landtype">
                                                <?php echo $this->form->prp_plotnumber; ?>
                                            </div>
                                        </div>


                                        <div class="row form-row">
                                            <div class="col-md-4 propertytype landtype">
                                                <?php echo $this->form->prp_zone; ?>
                                            </div>
                                            <div class="col-md-4 propertytype landtype">
                                                <?php echo $this->form->prp_frontage; ?>
                                            </div>
                                        </div>


                                        <div class="row form-row">
                                            <div class="col-md-6 propertytype  housetype landtype">
                                                <?php echo $this->form->prp_videotext; ?>
                                            </div>
                                        </div>

                                    </div>

                                    <br/>

                                    <div class="tab-pane" id="tab4"> <br>
                                        <h4 class="semi-bold">Step 4 - <span class="light">Property gallery</span></h4>
                                        <br>

                                        
                                        <div class="mainimage-container propertytype housetype landtype businesstype">
                                        <h4>Upload Main Image</h4>            
                                        <div class="row form-row">
                                            <div class="col-md-4">
                                                <input name="prpi_main_image[]" class="image_class" type="file" />
                                            </div>
                                        </div>		


                                        <?php if ($this->prpi_main_image != ""): ?>
                                            <div class="row form-row">
                                                <div class="col-md-3">
                                                    <?php
                                                    $src_path = $this->PUBLIC_PATH . "upload/property/mainimage/" . $this->prpi_main_image;
                                                    ?>
                                                    <img src="<?php echo $src_path; ?>" height="100" width="100"/>
                                                    <a href="<?php echo $this->url(array('controller' => 'property', 'action' => 'deleteimage', 'type' => 'MAIN_IMAGE', 'id' => $this->prp_id), 'default', false); ?>" class="btn btn-danger">Delete</a>
                                                </div>
                                            </div>		
                                        <?php endif; ?>
                                        
                                    </div>
                                        
                                        
                                        <div class="fyllosxedio-container propertytype housetype landtype">
                                        <h4>Upload FYLLO SXEDIO</h4>            
                                        <div class="row form-row">
                                            <div class="col-md-4">
                                                <input name="prpi_fyllo_sxedio[]" class="image_class" type="file" />
                                            </div>
                                        </div>	


                                        <?php foreach ($this->propertyImages['FYLLO_SXEDIO'] as $_img): ?>
                                            <?php if ($_img['prpi_img'] != ""): ?>
                                                <div class="row form-row">
                                                    <div class="col-md-3">
                                                        <?php
                                                        $src_path = $this->PUBLIC_PATH . "upload/property/fyllo_sxedio/" . $_img['prpi_img'];
                                                        ?>
                                                        <img src="<?php echo $src_path; ?>" height="100" width="100"/>
                                                        <a href="<?php echo $this->url(array('controller' => 'property', 'action' => 'deleteimage', 'type' => 'FYLLO_SXEDIO', 'id' => $_img['prpi_id']), 'default', false); ?>" class="btn btn-danger">Delete</a>
                                                    </div>
                                                </div>		
                                                <br/>
                                            <?php endif; ?>
                                        <?php endforeach; ?>
                                        </div>

                                        <div class="extraimages-wrappercontainer propertytype housetype landtype businesstype">
                                        <h4>Upload Extra Images</h4>            
                                        <div class="row form-row extraimagecontainer">

                                            <div class="col-md-10">
                                                <div class="dropzone extraimage_dropzone">
                                                </div>
                                            </div>

                                            <?php /* ?>
                                              <div class="col-md-8">
                                              <input name="prpi_extra_image[]" class="image_class" type="file" />
                                              </div>
                                              <div class="col-md-2">
                                              <button type="button" class="btn btn-success addextraimages">Add</button>
                                              </div>
                                              <?php */ ?>
                                        </div>		
                                        <br/>
                                        <?php foreach ($this->propertyImages['EXTRA_IMAGE'] as $_img): ?>
                                            <?php if ($_img['prpi_img'] != ""): ?>
                                                <div class="row form-row">
                                                    <div class="col-md-3">
                                                        <?php
                                                        $src_path = $this->PUBLIC_PATH . "upload/property/extraimages/" . $_img['prpi_img'];
                                                        ?>
                                                        <img src="<?php echo $src_path; ?>" height="100" width="100"/>
                                                        <a href="<?php echo $this->url(array('controller' => 'property', 'action' => 'deleteimage', 'type' => 'EXTRA_IMAGE', 'id' => $_img['prpi_id']), 'default', false); ?>" class="btn btn-danger">Delete</a>
                                                    </div>
                                                </div>		
                                                <br/>
                                            <?php endif; ?>
                                        <?php endforeach; ?>
                                        </div>
                                        
                                        <div class="three60images-wrappercontainer propertytype landtype">
                                        <h4>Upload 360 Images</h4>            
                                        <div class="row form-row 360imagecontainer">
                                            <div class="col-md-10">
                                                <div class="dropzone three60image_dropzone">
                                                </div>
                                            </div>
                                            <?php /* ?>
                                            <div class="col-md-3">
                                                <input name="prpi_360_image[]" class="image_class" type="file" />
                                            </div>
                                            <div class="col-md-2">
                                                <button type="button" class="btn btn-success add360images">Add</button>
                                            </div>
                                             <?php */ ?>
                                             
                                        </div>		
                                        <br/>

                                        <?php foreach ($this->propertyImages['THREE_SIXTY_IMAGE'] as $_img): ?>
                                            <?php if ($_img['prpi_img'] != ""): ?>
                                                <div class="row form-row">
                                                    <div class="col-md-3">
                                                        <?php
                                                        $src_path = $this->PUBLIC_PATH . "upload/property/threesixtyimages/" . $_img['prpi_img'];
                                                        ?>
                                                        <img src="<?php echo $src_path; ?>" height="100" width="100"/>
                                                        <a href="<?php echo $this->url(array('controller' => 'property', 'action' => 'deleteimage', 'type' => 'THREE_SIXTY_IMAGE', 'id' => $_img['prpi_id']), 'default', false); ?>" class="btn btn-danger">Delete</a>
                                                    </div>
                                                </div>		
                                                <br/>
                                            <?php endif; ?>
                                        <?php endforeach; ?>

                                        </div>
                                        
                                        
                                        <div class="floorimages-wrappercontainer propertytype housetype landtype">
                                        <h4>Upload Floorplan Images</h4>            
                                        <div class="row form-row floorimagecontainer">
                                            
                                            <div class="col-md-10">
                                                <div class="dropzone floor_image_dropzone">
                                                </div>
                                            </div>
                                            
                                            <?php /* ?>
                                              
                                            <div class="col-md-3">
                                                <input name="prpi_floor_image[]" class="image_class" type="file" />
                                            </div>
                                            <div class="col-md-2">
                                                <button type="button" class="btn btn-success addfloorimages">Add</button>
                                            </div>
                                            <?php */ ?>

                                        </div>		
                                        <br/>

                                        <?php foreach ($this->propertyImages['FLOOR_IMAGE'] as $_img): ?>
                                            <?php if ($_img['prpi_img'] != ""): ?>
                                                <div class="row form-row">
                                                    <div class="col-md-3">
                                                        <?php
                                                        $src_path = $this->PUBLIC_PATH . "upload/property/floor/" . $_img['prpi_img'];
                                                        ?>
                                                        <img src="<?php echo $src_path; ?>" height="100" width="100"/>
                                                        <a href="<?php echo $this->url(array('controller' => 'property', 'action' => 'deleteimage', 'type' => 'FLOOR_IMAGE', 'id' => $_img['prpi_id']), 'default', false); ?>" class="btn btn-danger">Delete</a>
                                                    </div>
                                                </div>		
                                                <br/>
                                            <?php endif; ?>
                                        <?php endforeach; ?>
                                        </div>
                                               
                                        
                                        <div class="bedimages-wrappercontainer propertytype housetype landtype">
                                        <h4>Upload Bedroom Images</h4>            
                                        <div class="row form-row bedroomimagecontainer">
                                            
                                            <div class="col-md-10">
                                                <div class="dropzone bedroom_image_dropzone">
                                                </div>
                                            </div>
                                            <?php /* ?>
                                              
                                            <div class="col-md-3">
                                                <input name="prpi_bedroom_image[]" class="image_class" type="file" />
                                            </div>
                                            <div class="col-md-2">
                                                <button type="button" class="btn btn-success addbedroomimages">Add</button>
                                            </div>
                                              <?php */ ?>
                                        </div>		

                                        <br/>
                                        <?php foreach ($this->propertyImages['BEDROOM_IMAGE'] as $_img): ?>
                                            <?php if ($_img['prpi_img'] != ""): ?>
                                                <div class="row form-row">
                                                    <div class="col-md-3">
                                                        <?php
                                                        $src_path = $this->PUBLIC_PATH . "upload/property/bedroom/" . $_img['prpi_img'];
                                                        ?>
                                                        <img src="<?php echo $src_path; ?>" height="100" width="100"/>
                                                        <a href="<?php echo $this->url(array('controller' => 'property', 'action' => 'deleteimage', 'type' => 'BEDROOM_IMAGE', 'id' => $_img['prpi_id']), 'default', false); ?>" class="btn btn-danger">Delete</a>
                                                    </div>
                                                </div>		
                                                <br/>
                                            <?php endif; ?>
                                        <?php endforeach; ?>
                                        </div>
                                        
                                        <div class="livingimages-wrappercontainer propertytype housetype landtype">
                                        <h4>Upload Living Images</h4>            
                                        <div class="row form-row livingimagecontainer">
                                            
                                            
                                            <div class="col-md-10">
                                                <div class="dropzone living_image_dropzone">
                                                </div>
                                            </div>
                                            <?php /* ?>
                                            <div class="col-md-3">
                                                <input name="prpi_living_image[]" class="image_class" type="file" />
                                            </div>
                                            <div class="col-md-2">
                                                <button type="button" class="btn btn-success addlivingimages">Add</button>
                                            </div>
                                              <?php */ ?>
                                            
                                        </div>		

                                        <br/>
                                        <?php foreach ($this->propertyImages['LIVING_ROOM'] as $_img): ?>
                                            <?php if ($_img['prpi_img'] != ""): ?>
                                                <div class="row form-row">
                                                    <div class="col-md-3">
                                                        <?php
                                                        $src_path = $this->PUBLIC_PATH . "upload/property/living/" . $_img['prpi_img'];
                                                        ?>
                                                        <img src="<?php echo $src_path; ?>" height="100" width="100"/>
                                                        <a href="<?php echo $this->url(array('controller' => 'property', 'action' => 'deleteimage', 'type' => 'LIVING_ROOM', 'id' => $_img['prpi_id']), 'default', false); ?>" class="btn btn-danger">Delete</a>
                                                    </div>
                                                </div>		
                                                <br/>
                                            <?php endif; ?>
                                        <?php endforeach; ?>
                                        </div>
                                               
                                        <div class="bathimages-wrappercontainer propertytype housetype landtype">
                                        <h4>Upload Bathroom Images</h4>            
                                        <div class="row form-row bathroomimagecontainer">
                                            
                                            <div class="col-md-10">
                                                <div class="dropzone bathroom_image_dropzone">
                                                </div>
                                            </div>
                                            <?php /* ?>
                                            <div class="col-md-3">
                                                <input name="prpi_bathroom_image[]" class="image_class" type="file" />
                                            </div>
                                            <div class="col-md-2">
                                                <button type="button" class="btn btn-success addbathroomimages">Add</button>
                                            </div>
                                              <?php */ ?>

                                        </div>		

                                        <br/>
                                        <?php foreach ($this->propertyImages['BATHROOM'] as $_img): ?>
                                            <?php if ($_img['prpi_img'] != ""): ?>
                                                <div class="row form-row">
                                                    <div class="col-md-3">
                                                        <?php
                                                        $src_path = $this->PUBLIC_PATH . "upload/property/bathroom/" . $_img['prpi_img'];
                                                        ?>
                                                        <img src="<?php echo $src_path; ?>" height="100" width="100"/>
                                                        <a href="<?php echo $this->url(array('controller' => 'property', 'action' => 'deleteimage', 'type' => 'BATHROOM', 'id' => $_img['prpi_id']), 'default', false); ?>" class="btn btn-danger">Delete</a>
                                                    </div>
                                                </div>		
                                                <br/>
                                            <?php endif; ?>
                                        <?php endforeach; ?>
                                        </div>

                                        
                                        <div class="outdoorimages-wrappercontainer propertytype">
                                        <h4>Upload Outdoor Images</h4>            
                                        <div class="row form-row outdoorimagecontainer">
                                            
                                            <div class="col-md-10">
                                                <div class="dropzone outdoor_image_dropzone">
                                                </div>
                                            </div>
                                                <?php /* ?>
                                            
                                            
                                            <div class="col-md-3">
                                                <input name="prpi_outdoor_image[]" class="image_class" type="file" />
                                            </div>
                                            <div class="col-md-2">
                                                <button type="button" class="btn btn-success addoutdoorimages">Add</button>
                                            </div>
                                              <?php */ ?>

                                        </div>		

                                        <br/>
                                        <?php foreach ($this->propertyImages['OUTDOOR'] as $_img): ?>
                                            <?php if ($_img['prpi_img'] != ""): ?>
                                                <div class="row form-row">
                                                    <div class="col-md-3">
                                                        <?php
                                                        $src_path = $this->PUBLIC_PATH . "upload/property/outdoor/" . $_img['prpi_img'];
                                                        ?>
                                                        <img src="<?php echo $src_path; ?>" height="100" width="100"/>
                                                        <a href="<?php echo $this->url(array('controller' => 'property', 'action' => 'deleteimage', 'type' => 'OUTDOOR', 'id' => $_img['prpi_id']), 'default', false); ?>" class="btn btn-danger">Delete</a>
                                                    </div>
                                                </div>		
                                                <br/>
                                            <?php endif; ?>
                                        <?php endforeach; ?>
                                        </div>        
                                            
                                        
                                        <div class="documents-wrappercontainer propertytype">
                                        <h4>Upload Documents</h4>            
                                        <div class="row form-row documentcontainer">
                                            
                                            
                                            <div class="col-md-10">
                                                <div class="dropzone document_dropzone">
                                                </div>
                                            </div>
                                            <?php /* ?>
                                              
                                            <div class="col-md-3">
                                                <input name="prpi_document[]" class="image_class" type="file" />
                                            </div>

                                            <div class="col-md-2">
                                                <button type="button" class="btn btn-success adddocument">Add</button>
                                            </div>

                                            <?php */ ?>
                                            
                                        </div>		

                                        <br/>
                                        <?php foreach ($this->propertyDocuments['DOCUMENT'] as $_img): ?>
                                            <?php if ($_img['prpd_doc'] != ""): ?>
                                                <div class="row form-row">
                                                    <div class="col-md-3">
                                                        <?php
                                                        $src_path = $this->PUBLIC_PATH . "img/document.png";
                                                        ?>
                                                        <img src="<?php echo $src_path; ?>" height="100" width="100"/>
                                                        <a href="<?php echo $this->url(array('controller' => 'property', 'action' => 'deleteimage', 'type' => 'DOCUMENT', 'id' => $_img['prpd_id']), 'default', false); ?>" class="btn btn-danger">Delete</a>
                                                    </div>
                                                </div>		
                                                <br/>
                                            <?php endif; ?>
                                        <?php endforeach; ?>
                                        </div>
                                                
                                    </div>

                                    <br/>                                    
                                    <br/>                                    

                                    
                                    <ul class=" wizard wizard-actions">
                                        <li class="previous first" style="display:none;"><a href="javascript:;" class="btn">&nbsp;&nbsp;First&nbsp;&nbsp;</a></li>
                                        <li class="previous"><a href="javascript:;" class="btn">&nbsp;&nbsp;Previous&nbsp;&nbsp;</a></li>
                                        <li class="next last disabled" style="display:none;"><a href="javascript:;" class="btn btn-primary">&nbsp;&nbsp;Last&nbsp;&nbsp;</a></li>
                                        <li class="next disabled lastbutton"><a href="javascript:;" class="btn btn-primary">&nbsp;&nbsp;Next&nbsp;&nbsp;</a></li>
                        
                                        <?php if ($this->mode == 'Edit'): ?>
                                        <input type="submit" value="Edit property" class="submitfrmbtn display-none btn btn-primary" name="Edit property"/>
                                        <?php else: ?>
                                        <input type="submit" value="Add property" class="submitfrmbtn display-none btn btn-primary" name="Add property"/>
                                        <?php endif; ?>
                        
                                    </ul>

                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- END PAGE -->